package com.zsr.msmservice.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 读取配置类
 * @author zsr
 * @date 2021/6/19 10:30
 */
@Component
public class ConstantPropertiesUtils implements InitializingBean {

    @Value("${spring.mail.username}")
    private String mailUsername;

    public static String MAIL_USERNAME;
    @Override
    public void afterPropertiesSet() throws Exception {
        MAIL_USERNAME=this.mailUsername;
    }
}
